<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('审核记录列表')" />
</head>
<body class="gray-bg">
<div class="container-div">
    <div class="row">
        <div class="col-sm-12 search-collapse" hidden>
            <form id="formId">
                <div class="select-list">
                    <ul>
                        <li>
                            <label>类型：</label>
                            <input type="text" name="type" value="examine_post"/>
                        </li>
                        <li>
                            <label>岗位Id：</label>
                            <input type="text" name="postId" th:value="${postExamine.postId}"/>
                        </li>
                        <li>
                            <label>审批人：</label>
                        </li>
                        <li>
                            <label>状态：</label>
                            <input type="text" name="status"/>
                        </li>
                    </ul>
                </div>
            </form>
        </div>

        <div class="col-sm-12 select-table table-striped">
            <table id="bootstrap-table"></table>
        </div>
    </div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
    var prefix = ctx + "wstudy/record";
    $.table.search()
    $(function() {
        var options = {
            url: prefix + "/list",
            createUrl: prefix + "/add",
            updateUrl: prefix + "/edit/{id}",
            removeUrl: prefix + "/remove",
            exportUrl: prefix + "/export",
            pagination: false,
            modalName: "审核记录",
            columns: [{
                checkbox: true
            },
                {
                    field: 'id',
                    title: 'ID',
                    visible: false
                },
                {
                    field: 'userName',
                    title: '审核人'
                },
                {
                    field: 'createTime',
                    title: '审核时间'
                },
                {
                    field: 'type',
                    title: '类型',
                    formatter:function (value,row,index) {
                        return value=='examine_post'?'岗位审批':'';
                    }
                },
                {
                    field: 'content',
                    title: '审核信息'
                },
                ]
        };
        $.table.init(options);
    });
</script>
</body>
</html>